<%@ Register TagPrefix="skm" Namespace="FAQControls" Assembly="FAQControls" %>
<%@ Page language="c#" Codebehind="ModerateFAQsCategory.aspx.cs" AutoEventWireup="True" Inherits="Adge.Web.Faq.Admin.ModerateFAQsCategory" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Moderate FAQs in Category</title>
		<LINK href="../FAQstyle.css" type="text/css" rel="stylesheet">
			<meta http-equiv="Refresh" content="60; ModerateFAQsCategory.aspx">
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<p><skm:loginpanel id="LoginPanel1" runat="server" cssclass="faq_logout"></skm:loginpanel></p>
			<h1>Moderate FAQs in Category</h1>
			<div class="faq_breadcrumb"><A href="Default.aspx">skmFAQs.NET Administration</A> &gt;
				<A href="ModerateFAQs.aspx">Moderate FAQs</A> &gt; Moderate FAQs in Category</div>
			<p><asp:datalist id="dlFAQs" runat="server" GridLines="Both" CellPadding="0" BackColor="White" BorderWidth="1px"
					BorderStyle="None" BorderColor="#CC9966" DataKeyField="FAQPartID">
					<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
					<HeaderTemplate>
						FAQ Contributions to Moderate
					</HeaderTemplate>
					<ItemStyle ForeColor="#330099" BackColor="White"></ItemStyle>
					<ItemTemplate>
						<div class="faq_moderateFAQTitle">
							<b>Created By:</b>
							<%# DataBinder.Eval(Container.DataItem, "CreatedByUsername") %>
							| <b>Created On:</b>
							<%# DataBinder.Eval(Container.DataItem, "DateCreated") %>
							|
							<asp:HyperLink Runat="server" ID="lnkViewFAQ">View FAQ</asp:HyperLink>
							<hr />
							<b>Actions:</b> </b>
							<asp:LinkButton Runat="server" CommandName="Approve">Approve</asp:LinkButton>
							|
							<asp:LinkButton Runat="server" CommandName="ApproveAndEdit">Approve and Edit</asp:LinkButton>
							| <a href='EditFAQ.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "FAQID") %>'>Edit 
								(Without Approving)</a> |
							<asp:LinkButton Runat="server" CommandName="RequestChanges">Request Contributor Makes Changes Before Approving</asp:LinkButton>
							|
							<asp:LinkButton Runat="server" CommandName="Delete">Delete</asp:LinkButton>
						</div>
						<div class="faq_moderateFAQBody">
							<b>Question: </b>
							<asp:Label Runat="server" ID="FAQQuestion"></asp:Label>
							<hr />
							<%# DataBinder.Eval(Container.DataItem, "Answer") %>
						</div>
					</ItemTemplate>
					<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
					<HeaderStyle Font-Bold="True" HorizontalAlign="Center" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
				</asp:datalist></p>
			<P><asp:label id="noFAQsToApprove" runat="server" Font-Italic="True">There are no FAQs to approve in this category...</asp:label></P>
			<P>
				<asp:Panel id="pnlReason" runat="server" Visible="False">
<asp:Label id="reasonLabel" runat="server"></asp:Label><BR>
<asp:TextBox id="reason" runat="server" TextMode="MultiLine" Columns="50" Rows="7"></asp:TextBox><BR>
<asp:Button id="btnSendReason" runat="server" onclick="btnSendReason_Click"></asp:Button>&nbsp;&nbsp; 
<asp:Button id="btnCancel" runat="server" Text="Cancel" onclick="btnCancel_Click"></asp:Button></asp:Panel></P>
		</form>
	</body>
</HTML>
